package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;

import com.jy.appmarket.network.resultdata.SimpleBaseResult;

public class SubmitCommentEngine extends BaseNetEngine {
	private String mPkgName;
	private String mEvaluate;
	private String mContent;
	private int mVersionCode;

	public SubmitCommentEngine(String pkgName, String evaluate, String content, int versionCode) {
		mPkgName = pkgName;
		mEvaluate = evaluate;
		mContent = content;
		mVersionCode = versionCode;
		mResultData = new SimpleBaseResult();
		mHttpMethod = HTTP_POST;
	}

	@Override
	protected String getCommand() {
		return "post_comment";
	}

	// @Override
	// protected void postParams(Context context, Map<String, String> params) {
	@Override
	protected void getParams(Context context, Map<String, String> params) {
		params.put("packageName", mPkgName);
		params.put("evaluate", mEvaluate);
		params.put("content", mContent);
		params.put("versionCode", String.valueOf(mVersionCode));
	}
}
